package com.example.demo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.demo.pojo.Customer;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.vo.ResultVO;
import io.swagger.models.auth.In;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sjy
 * @since 2025-05-25
 */
public interface CustomerService extends IService<Customer> {
    //用户登录
    ResultVO<Customer> customerLogin(String phone, String password) throws Exception;;
    //用户注册
    ResultVO<Customer> customerRegister(Customer customer);
    //查询用户信息
    ResultVO<IPage<Customer>> customerQuery(String account, String name, String company, Integer state,Integer pageNum, Integer pageSize) throws Exception;
    //更改客户账号状态
    ResultVO<Customer> customerUpdateState(Integer customerId, Integer status) throws Exception;
    //用户充值
    ResultVO<Customer> recharge(Integer customerId, double amount);
    //根据用户ID获取余额
    ResultVO<Double> getBalanceById(Integer customerId);
}
